package com.company.card_service.controller;


import com.company.card_service.constant.ApiTextHelperConstant;
import com.company.card_service.constant.DeveloperConstant;
import com.company.card_service.model.Company;
import com.company.card_service.serviceImpl.CompanyServiceImpl;
import com.company.card_service.vo.basevo.PageResult;
import com.company.card_service.vo.basevo.Result;
import com.company.card_service.vo.reqvo.role.QueryRoleReqVo;
import com.company.card_service.vo.respvo.role.RoleRespVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:06
 */
@Api(tags = "后台管理系统-公司接口")
@RestController
@RequestMapping("admin/company/")
public class CompanyController {

    @Autowired
    private CompanyServiceImpl companyService;

    @ApiOperation(value = "分页查询角色列表", notes = ApiTextHelperConstant.DEVELOPER + DeveloperConstant.LIJUNLIN)
    @GetMapping("/queryCompany/{companyId}")
    public Result queryCompany(@PathVariable Long companyId) {
        Company byId = companyService.getById(companyId);
        return Result.success(byId);
    }
}

